﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class My
    {
        public void pd(int index)//判断
        {
            if (index != -1)
            {
                Console.WriteLine("集合中存在 abc 元素！");
            }
            else
            {
                Console.WriteLine("集合中不存在 abc 元素！");
            }
        }
        public void print(ArrayList list1 )//输出集合
        {
            
            foreach (var v in list1)
            {
                Console.Write(v+"\t");
            }
            Console.WriteLine( );
        }
        public void print(bool a)//输出布尔值
        {

            Console.WriteLine(a);
        }
        public void print(int b)
        {
            Console.WriteLine(b);
        }
    }
}
